home *** CD-ROM | disk | FTP | other *** search
/ Internet Info 1994 March / Internet Info CD-ROM (Walnut Creek) (March 1994).iso / standards / sgml / nist / incs / dtdfncs.h < prev    next >
Encoding:
Text File  |  1990-09-13  |  6.8 KB  |  195 lines

  1. /* National Institute of Standards and Technology (NIST)
  2. /* National Computer System Laboratory (NCSL)
  3. /* Office Systems Engineering (OSE) Group
  4. /* ********************************************************************
  5. /*                            D I S C L A I M E R
  6. /*                              (March 8, 1989)
  7. /*  
  8. /* There is no warranty for the NIST NCSL OSE SGML parser and/or the NIST
  9. /* NCSL OSE SGML parser validation suite.  If the SGML parser and/or
  10. /* validation suite is modified by someone else and passed on, NIST wants
  11. /* the parser's recipients to know that what they have is not what NIST
  12. /* distributed, so that any problems introduced by others will not
  13. /* reflect on our reputation.
  14. /* 
  15. /* Policies
  16. /* 
  17. /* 1. Anyone may copy and distribute verbatim copies of the SGML source
  18. /* code as received in any medium.
  19. /* 
  20. /* 2. Anyone may modify your copy or copies of SGML parser source code or
  21. /* any portion of it, and copy and distribute such modifications provided
  22. /* that all modifications are clearly associated with the entity that
  23. /* performs the modifications.
  24. /* 
  25. /* NO WARRANTY
  26. /* ===========
  27. /* 
  28. /* NIST PROVIDES ABSOLUTELY NO WARRANTY.  THE SGML PARSER AND VALIDATION
  29. /* SUITE ARE PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER
  30. /* EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
  31. /* WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
  32. /* THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS
  33. /* WITH YOU.  SHOULD THE SGML PARSER OR VALIDATION SUITE PROVE DEFECTIVE,
  34. /* YOU ASSUME THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
  35. /* 
  36. /* IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW WILL NIST BE LIABLE FOR
  37. /* DAMAGES, INCLUDING ANY LOST PROFITS, LOST MONIES, OR OTHER SPECIAL,
  38. /* INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR
  39. /* INABILITY TO USE (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA
  40. /* BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY THIRD PARTIES OR A
  41. /* FAILURE OF THE PROGRAM TO OPERATE WITH PROGRAMS NOT DISTRIBUTED BY
  42. /* NIST) THE PROGRAM, EVEN IF YOU HAVE BEEN ADVISED OF THE POSSIBILITY OF
  43. /* SUCH DAMAGES, OR FOR ANY CLAIM BY ANY OTHER PARTY.
  44. */
  45.  
  46. /************************************************************************/
  47. /*   TITLE:          SGML PARSER                                        */
  48. /*   SYSTEM:         DTD PROCESSOR                                      */
  49. /*   SUBSYSTEM:                                                         */
  50. /*   SOURCE FILE:    DTDFNCS.H                                          */
  51. /*   AUTHOR:         Jim Heath                                          */
  52. /*                                                                      */
  53. /*   DATE CREATED:                                                      */
  54. /*   LAST MODIFIED:                                                     */
  55. /*                                                                      */
  56. /*                  REVISIONS                                           */
  57. /*   WHEN      WHO            WHY                                       */
  58. /************************************************************************/
  59. /* DTD.C */
  60. /*global*/  int main();
  61. /*global*/  void processinput();
  62. /*global*/  void doopts();
  63. /*global*/  void dofiles();
  64. /*global*/  void dodecl();
  65. /*global*/  void writeposition();
  66. /*global*/  void dogetds();
  67. /*global*/  void dopio();
  68. /*global*/  void finddocelt();
  69. /*global*/  void finddocelt2();
  70. /*global*/  void dopio2();
  71. /*global*/  int docomment();
  72. /*global*/  void dokeyword();
  73.  
  74. /* DTDMS.C */
  75. /*global*/  void get_name();
  76. /*global*/  void get_ms_closes();
  77. /*global*/  void dogetsgml();
  78. /*global*/  void get_marked_section();
  79. /*global*/  int mycompare();
  80.  
  81. /* DTDATTR.C */
  82. /*global*/  int doattlist();
  83. /*global*/  int doattlist2();
  84. static  int getdeclvalcode();
  85. static  int getdeclgroup();
  86. static  void analyzedflt();
  87. static  void validate();
  88. static  void cvrtdeclcode();
  89. static  void cvrtdfltcode();
  90. static  void grpvalidate();
  91. /*global*/  void inputattrvalspec();
  92. /*global*/  int reslvgref();
  93. /* DTDELT.C */
  94. /*global*/  int doelement();
  95. /*global*/  int dosingleelt();
  96. /*global*/  int doeltgroup();
  97. /*global*/  void doelt2();
  98. /*global*/  int geteltname();
  99. /*global*/  void docontent();
  100. /*global*/  void getsubexprs();
  101. /*global*/  int simplify();
  102. /*global*/  int updateoi();
  103. /*global*/  void writecount();
  104. static  void writename();
  105. static  void writeconnector();
  106. /*global*/  void putsymtbl();
  107. /*global*/  int andcount();
  108. /*global*/  void chkconnector();
  109. /*global*/  int ckfordup();
  110. static  void doinclusions();
  111. static  void doexclusions();
  112. /*global*/ int countnames();
  113. /*global*/ int nestlevel();
  114. /*global*/ void writecmodel();
  115. /* DTDENT.C */ 
  116. /*global*/  void doentity();
  117. /*global*/  char *getentname();
  118. /*global*/  int getenttext();
  119. /*global*/  int search();
  120. /*global*/  void buildtbl();
  121. /*global*/  void buildandwritesymbol();
  122. /*global*/  void writerecord();
  123. /* DTDEXIT.C */ 
  124. /*global*/  void bldsymbtbl();
  125. static  void doincludes();
  126. static  void doexcludes();
  127. /*global*/  void bldtokentree();
  128. /*global*/  int find();
  129. /*global*/  int find2();
  130. /*global*/  void ckattributes();
  131. /*global*/  void closeall();
  132. /*global*/  void unlinkall();
  133. /* DTDGRPS.C */ 
  134. /*global*/  char *getagroup();
  135. /*global*/  int dosawGRPO();
  136. /*global*/  int dosawGRPC();
  137. /*global*/  int doendGRP();
  138. /*global*/  int doinNAME();
  139. /*global*/  int dosawOI();
  140. /*global*/  int dosawCONNECTOR();
  141. /*global*/  int doendofNAME();
  142. /*global*/  int dosawEE();
  143. /*global*/  int INPTS();
  144. /*global*/  void ckts();
  145. /*global*/  int issepchar();
  146. /* DTDNOTAT.C */ 
  147. /*global*/  int donotation();
  148. /*global*/  void inpextrnlID();
  149. /*global*/  void dosystem();
  150. /*global*/  void dopublic();
  151. /*global*/  void getminimumliteral();
  152. /*global*/  void cknotation();
  153. /* DTDUINP.C */ 
  154. /*global*/  int inpsep();
  155. /*global*/  void reslvpref();
  156. /*global*/  void ungetreslv();
  157. /*global*/  int inpitem();
  158. /*global*/  void inpcomment();
  159. /*global*/  int inpMDO();
  160. /*global*/  void inpparmlit();
  161. /*global*/  void reslvcharref();
  162. /*global*/  void xlatcharnum();
  163. /*global*/  void reslvreplpref();
  164. /*global*/  int jgetc();
  165. /*global*/  void jungetc();
  166. /*global*/  void stackinit();
  167. /*global*/  int getkwindex();
  168. /* DTDUMISC.C */ 
  169. /*global*/  void nullfnc();
  170. /*global*/  int noxlat();
  171. /*global*/  void FUNCTRACE();
  172. /*global*/  void terminate();
  173. /*global*/  int TOUPPER();
  174. /*global*/  void syntxerr();
  175. /*global*/  int ISALPHA();
  176. /*global*/  int ISDIGIT();
  177. /*global*/  int ISALNUM();
  178. /*global*/  int isnmchar();
  179. /*global*/  int isnmstrt();
  180. /*global*/  int isspcl();
  181. /*global*/  void safewrite();
  182. /*global*/  int safeopen();
  183. /*global*/  int safecreat();
  184. /*global*/  int safeunlink();
  185. /*global*/  FILE *safefopen();
  186. /*global*/  void safeclose();
  187. /*global*/  void safefclose();
  188. /*global*/  char *synliteral();
  189. /*global*/  void mprintf();
  190. /*global*/  int getnamegrp();
  191. /*global*/  int isconnector();
  192. /*global*/  int isoi();
  193. /*global*/  int isnamerni();
  194. /*global*/  char *getnamerni();
  195.